<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/token.jsp"%>
<%
    String id = input.getDesc("group_patient_id", "");
    String content = input.getDesc("content", "");
    if ("".equals(content)) {
        msg = new Message(30062, "请填写备注");
        Tools.encryptPrint(out, msg);
        return;
    }
    List<GroupPatient> groupPatients = QBuilder.db("basedb").select().from("GroupPatient").where(new Where("status = ", STATUS_ENABLE).and("hospital =", hospital).and("id=", id)).query().getResultObj();
    if (isEmpty(groupPatients)) {
        msg = new Message(30041, "该用户已经不存在,请刷新页面");
    } else {
        GroupPatient groupPatient = groupPatients.get(0);
        groupPatient.setContent(content);
        DBTools.db("basedb").modItem(groupPatient, groupPatient.getId());
    }
    Tools.encryptPrint(out, msg);
%>
